//
//  DNFeedingManager.h
//  DanoneEA
//
//  Created by Senela on 16/10/19.
//  Copyright © 2016年 翔傲科技. All rights reserved.
//

#import "DNDairyManager.h"
#import "DNFeedModel.h"

@interface DNFeedingManager : DNDairyManager

+ (instancetype)sharedInstance;

/**
 *  save feeding dairy in local db
 *
 *  @param diaryInfo <DNFeedModel>
 *
 *  @return YES/NO
 */
-(BOOL)saveDairyToLocalDB:(DNFeedModel *)diaryInfo;

/**
 *  save feeding dairy list in local db
 *
 *  @param diaryArr
 *
 *  @return YES/NO
 */
-(BOOL)saveFeedingDairyArrToLocalDB:(NSArray *)diaryArr;


/**
 *  delete diary info from local DB by appId
 *
 *  @param appId
 *
 *  @return YES/NO
 */
-(BOOL)deleteDairyFromLocalDBByAppId:(NSString *)appId;


/**
 *  upload offline feeding daily to application server
 */
-(void)synchronousFeedingData;

@end
